const fs = require("fs")
module.exports = (req, res, next) => {
    const obj = {
        time: new Date(),
        url: req.path,
        method: req.method
    }
    const objString = JSON.stringify(obj)
    fs.writeFile("../vlog.json", objString, {
        flag: "a"
    }, (err) => {
        next(err)
    })
}